package org.dam.pojo;

import lombok.ToString;

/**
 * @Author dam
 * @create 2024/1/5 19:54
 */
@ToString
public class User {
    private String name;

    public User() {
        System.out.println("执行 User 构造方法");
    }

    public User(String name) {
        System.out.println("执行 User 有参构造方法");
        this.name = name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void show(){
        System.out.println("name="+ name );
    }
}
